-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
- F include py.typed #184
base: main
Are you sure you want to change the base?
- F include py.typed #184
Conversation
Reviewer's Guide by SourceryThis PR adds a new test environment in tox to verify the presence of py.typed files in the built packages. The implementation creates a temporary test file that imports the packages and runs mypy on it to ensure type checking works correctly. The test builds wheel distributions of the packages, installs them, and verifies they can be properly type-checked. Sequence diagram for the py.typed file verification processsequenceDiagram
participant Developer
participant Tox
participant TestScript as test__py_typed_files_exist.py
participant Mypy
participant Pip
participant WheelBuilder as Wheel Builder
Developer->>Tox: Run test environment
Tox->>TestScript: Execute test__py_typed_files_exist.py
TestScript->>WheelBuilder: Build wheel for approval_utilities
WheelBuilder-->>TestScript: Return wheel
TestScript->>Pip: Install wheel
Pip-->>TestScript: Confirm installation
TestScript->>Mypy: Run mypy on temporary test file
Mypy-->>TestScript: Return type check result
TestScript->>WheelBuilder: Build wheel for approvaltests
WheelBuilder-->>TestScript: Return wheel
TestScript->>Pip: Install wheel
Pip-->>TestScript: Confirm installation
TestScript->>Mypy: Run mypy on temporary test file
Mypy-->>TestScript: Return type check result
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
72cdee5
to
f301d59
Compare
e1303ae
to
91b60f5
Compare
I don't understand, discuss Sunday? |
Fixes #179.
I put this outside of a pytest because it's pretty slow. Maybe there's a better way?
Summary by Sourcery
Tests: